package com.ewzj.bigdata.mvp.model.rspbean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * author:zhangjing
 * 作用:
 * return:
 */

public class Databean implements Parcelable {


    /**
     * groupId : 4
     * is_collect : 0
     * id : 256
     * go_url : http://192.168.0.221:3001/data/256
     * title : 苏州房地产市场快报(2016年6月)
     * tags :
     * cate_name : 免费数据
     * summary : 全市价格走势：环比上涨5.97%，同比上涨64.65%，为20404元/平米；全市需求：成交59.38万平米，环比下降17.16%，同比下降44.52%；全市供应：新批79.49万平方米，环比下降14.83%，同比下降25.05%。

     * thumb : http://img1.soufunimg.com/industry/2016_08/15/qyb/brief/bj/1471247684152.jpg
     * sources : 房天下
     * is_free : 1
     * visit : 0
     * comment : 2
     * is_pay : 0
     * pay_num : 0
     */

    private int groupId;
    private int is_collect;
    private int id;
    private String go_url;
    private String title;
    private String tags;
    private String cate_name;
    private String summary;
    private String thumb;
    private String sources;
    private int is_free;
    private String visit;
    private String comment;
    private String is_pay;
    private String pay_num;
//    1自己，0不是自己 -1跳网页
    private int is_self;
    private String three_url;


    public int getIs_self() {
        return is_self;
    }

    public void setIs_self(int is_self) {
        this.is_self = is_self;
    }

    public String getThree_url() {
        return three_url;
    }

    public void setThree_url(String three_url) {
        this.three_url = three_url;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getIs_collect() {
        return is_collect;
    }

    public void setIs_collect(int is_collect) {
        this.is_collect = is_collect;
    }

    public String getGo_url() {
        return go_url;
    }

    public void setGo_url(String go_url) {
        this.go_url = go_url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getCate_name() {
        return cate_name;
    }

    public void setCate_name(String cate_name) {
        this.cate_name = cate_name;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getThumb() {
        return thumb;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public String getSources() {
        return sources;
    }

    public void setSources(String sources) {
        this.sources = sources;
    }

    public int getIs_free() {
        return is_free;
    }

    public void setIs_free(int is_free) {
        this.is_free = is_free;
    }

    public String getVisit() {
        return visit;
    }

    public void setVisit(String visit) {
        this.visit = visit;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getIs_pay() {
        return is_pay;
    }

    public void setIs_pay(String is_pay) {
        this.is_pay = is_pay;
    }

    public String getPay_num() {
        return pay_num;
    }

    public void setPay_num(String pay_num) {
        this.pay_num = pay_num;
    }

    public Databean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.groupId);
        dest.writeInt(this.is_collect);
        dest.writeInt(this.id);
        dest.writeString(this.go_url);
        dest.writeString(this.title);
        dest.writeString(this.tags);
        dest.writeString(this.cate_name);
        dest.writeString(this.summary);
        dest.writeString(this.thumb);
        dest.writeString(this.sources);
        dest.writeInt(this.is_free);
        dest.writeString(this.visit);
        dest.writeString(this.comment);
        dest.writeString(this.is_pay);
        dest.writeString(this.pay_num);
        dest.writeInt(this.is_self);
        dest.writeString(this.three_url);
    }

    protected Databean(Parcel in) {
        this.groupId = in.readInt();
        this.is_collect = in.readInt();
        this.id = in.readInt();
        this.go_url = in.readString();
        this.title = in.readString();
        this.tags = in.readString();
        this.cate_name = in.readString();
        this.summary = in.readString();
        this.thumb = in.readString();
        this.sources = in.readString();
        this.is_free = in.readInt();
        this.visit = in.readString();
        this.comment = in.readString();
        this.is_pay = in.readString();
        this.pay_num = in.readString();
        this.is_self = in.readInt();
        this.three_url = in.readString();
    }

    public static final Creator<Databean> CREATOR = new Creator<Databean>() {
        @Override
        public Databean createFromParcel(Parcel source) {
            return new Databean(source);
        }

        @Override
        public Databean[] newArray(int size) {
            return new Databean[size];
        }
    };
}
